home *** CD-ROM | disk | FTP | other *** search
/ The Best of Select: Multimedia 20 / The Best of Select: Multimedia 20.iso / mpg / template.par < prev    next >
Text File  |  1996-10-14  |  3KB  |  120 lines

  1. # parameter file template with lots of comments to assist you
  2. #
  3. # you can use this as a template, copying it to a separate file then modifying
  4. # the copy
  5. #
  6. #
  7. # any line beginning with '#' is a comment
  8. #
  9. # no line should be longer than 255 characters
  10. #
  11. #
  12. # general format of each line is:
  13. #    <option> <spaces and/or tabs> <value>
  14. #
  15. # lines can generally be in any order
  16. #
  17. # only exception is the option 'INPUT' which must be followed by input
  18. # files in the order in which they must appear, followed by 'END_INPUT'
  19. #
  20. # <option> MUST be in UPPER CASE
  21. #
  22.  
  23. PATTERN        IBBPBBI
  24. OUTPUT        output.mpg
  25.  
  26. # mpeg_encode really only accepts 3 different file formats, but using a
  27. # conversion statement it can effectively handle ANY file format
  28. #
  29. # you must specify whether you will convert to PNM or PPM or YUV format
  30. #    (must be upper case)
  31. #
  32. BASE_FILE_FORMAT    YUV
  33.  
  34. #
  35. # if YUV format (or using parallel version), must provide width and height
  36. # YUV_SIZE    widthxheight
  37. # this option is ignored if BASE_FILE_FORMAT is PPM or PNM and you're running
  38. # on just one machine
  39. #
  40. YUV_SIZE    352x240
  41.  
  42. # the conversion statement
  43. #
  44. # Each occurrence of '*' will be replaced by the input file
  45. #
  46. # e.g., if you have a bunch of GIF files, then this might be:
  47. #    INPUT_CONVERT    giftoppm *
  48. #
  49. # e.g., if you have a bunch of files like a.Y a.U a.V, etc., then:
  50. #    INPUT_CONVERT    cat *.Y *.U *.V
  51. #
  52. # e.g., if you are grabbing from laser disc you might have something like
  53. #    INPUT_CONVERT    goto frame *; grabppm
  54. # 'INPUT_CONVERT *' means the files are already in the base file format
  55. #
  56. INPUT_CONVERT    *
  57.  
  58. # number of frames in a GOP.
  59. #
  60. # since each GOP must have at least one I-frame, the encoder will find the
  61. # the first I-frame after GOP_SIZE frames to start the next GOP
  62. #
  63. # later, will add more flexible GOP signalling
  64. #
  65. GOP_SIZE    6
  66.  
  67. # number of slices in a frame
  68. #
  69. # 1 is a good number.  another possibility is the number of macroblock rows
  70. # (which is the height divided by 16)
  71. #
  72. SLICES_PER_FRAME    1
  73.  
  74. # directory to get all input files from (makes this file easier to read)
  75. INPUT_DIR    ../input/tennis
  76.  
  77. INPUT
  78. # '*' is replaced by the numbers 01, 02, 03, 04
  79. # if I instead do [01-11], it would be 01, 02, ..., 09, 10, 11
  80. # if I instead do [1-11], it would be 1, 2, 3, ..., 9, 10, 11
  81. # if I instead do [1-11+3], it would be 1, 4, 7, 10
  82. # the program assumes none of your input files has a name ending in ']'
  83. # if you do, too bad!!!
  84. #
  85. #
  86. stennis.*.yuv    [0-23]
  87. # can have more files here if you want...there is no limit on the number
  88. # of files
  89. END_INPUT
  90.  
  91.  
  92.  
  93. # all of the remaining options have to do with the motion search and qscale
  94.  
  95. # FULL or HALF -- must be upper case
  96. PIXEL        HALF
  97.  
  98. # means +/- this many pixels
  99. RANGE        10
  100.  
  101. # this must be one of {EXHAUSTIVE, SUBSAMPLE, LOGARITHMIC}
  102. PSEARCH_ALG    LOGARITHMIC
  103.  
  104. # this must be one of {SIMPLE, CROSS2, EXHAUSTIVE}
  105. #
  106. # note that EXHAUSTIVE is really, really, really slow
  107. #
  108. BSEARCH_ALG    CROSS2
  109.  
  110. #
  111. # these specify the q-scale for I, P, and B frames
  112. # (values must be between 1 and 31)
  113. #
  114. IQSCALE        8
  115. PQSCALE        10
  116. BQSCALE        25
  117.  
  118. # this must be ORIGINAL or DECODED
  119. REFERENCE_FRAME    ORIGINAL
  120.